package crew.blt.handsound.client.services.user;

import java.util.Collection;

import com.google.gwt.user.client.rpc.AsyncCallback;

import crew.blt.handsound.shared.domain.User;
import crew.gwt.client.domain.OrderedEntitiesResponse;

public interface UserServiceAsync {
	void login(AsyncCallback<User> callback);
	void getUsers(AsyncCallback<Collection<User>> callback);
	void deleteUser(String id, AsyncCallback<Boolean> asyncCallback);
	void editUser(User u, AsyncCallback<Boolean> asyncCallback);
	void getUser(String userId, AsyncCallback<User> callback) ;
	
	void getOrderedEntities(int index, boolean asc, int gridCapacity,int startIndex,AsyncCallback<OrderedEntitiesResponse<User>> asyncCallback);
}
